package com.xj.common.bussiness.registerLicense.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE;

/**
 * <p>
 *    上户/普查登记表
 * </p>
 *
 * @author Hmemb
 * @since 2018-01-17
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("tb_register_license")
public class TbRegisterLicense extends Model<TbRegisterLicense> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	/**
	 * 申请人()设备所属人身份证号
	 */
	private String identification;
	/**
	 * 出厂编号
	 */
	@TableField(value="factory_num")
	private String factoryNum;

	/**
	 * 填表日期
	 */
	@TableField(value="create_date")
	@DateTimeFormat(iso = DATE)
	private Date createDate;
	/**
	 * 上户表状态（0 待审核，1审核中，2已审核，3审核未通过，4已完成）
	 */
	private String state;

	/**
	 * 设备牌编号(车牌号)
	 */
	@TableField(value="plate_Num")
	private String plateNum;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getIdentification() {
		return identification;
	}

	public void setIdentification(String identification) {
		this.identification = identification;
	}

	public String getFactoryNum() {
		return factoryNum;
	}

	public void setFactoryNum(String factoryNum) {
		this.factoryNum = factoryNum;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getPlateNum() {
		return plateNum;
	}

	public void setPlateNum(String plateNum) {
		this.plateNum = plateNum;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
